package com.sxfans.rmi.client;

import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

import com.sxfans.rmi.IHello;

public class HelloClient {
	public static void main(String[] args) throws Exception, RemoteException, NotBoundException {
		 IHello rhello =(IHello)Naming.lookup("rmi://localhost:8888/RHello");
		 System.out.println(rhello.helloWorld()); 
	}
}
